package hci.drummer.command;

public class Command {
	//1:orientation, 2:accelerometer
	public static final int ORIENTATION = 3;
	public static final int ACCELEROMETER = 1;
	private int type;
	private double x;
	private double y;
	private double z;

	public Command(int type) {
		this.type = type;
	}

	public Command(int type2, double x2, double y2, double z2) {
		this.type = type2;
		this.setData(x2, y2, z2);
	}

	public int getType() {
		return type;
	}

	public double getX() {
		return x;
	}

	public void setX(double x) {
		this.x = x;
	}

	public double getY() {
		return y;
	}

	public void setY(double y) {
		this.y = y;
	}

	public double getZ() {
		return z;
	}

	public void setZ(double z) {
		this.z = z;
	}

	public void setData(double x2, double y2, double z2) {
		this.setX(x2);
		this.setY(y2);
		this.setZ(z2);
	}
}
